import Link from 'next/link'; import { Heart } from 'lucide-react'; import { formatDate } from '@/lib/utils/format'; import { UserCommentRow, UserProfileDto } from '@/types/account/profile'; type Props = { list: UserCommentRow[]; author?: UserProfileDto|null; }; export default function UserCommentsList({ list, author }: Props) { if (list.length === 0) { return

작성한 댓글이 없습니다.

; } const authorDisplay = author?.name || author?.memberSID || null; const avatarInitial = (authorDisplay?.charAt(0) || '?').toUpperCase(); return ( ); } function stripTags(html: string): string { return html.replace(/<[^>]+>/g, ' ').replace(/\s+/g, ' ').trim().slice(0, 200); }